//-----------------------------------------------------------------------------
//<filedescription file="ActionsWizardPageControlBase.cs" company="Microsoft">
//  <copyright>
//     Copyright (c) 2005, 2010 Microsoft Corporation.  All rights reserved.
//  </copyright>
//  <purpose>
//     Control to be placed on ActionsWizardPage.
//  </purpose>
//  <notes>
//  </notes>
//</filedescription>
//-----------------------------------------------------------------------------

#region Using directives

using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using DevelopStudio.Basic;

#endregion

namespace DevelopStudio.Control.Basic
{
    /// <summary>
    /// The base for the controls for an ActionsWizardPage.
    /// </summary>
    public partial class ActionsWizardPageControlBase : ChangelistPageControl
    {
        /// <summary>
        /// Indicates if we has accessed template permission
        /// </summary>
        protected bool HasQueryTemplatePermission{ get; set; }

        /// <summary>
        /// Indicates if we has SMS_Template Create permission
        /// </summary>
        protected bool HasTemplateCreatePermission{ get; set; }

        /// <summary>
        /// Sets the caption string value.
        /// </summary>
        /// <value></value>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
        public virtual string PageTitle
        {
            set { throw new NotImplementedException(); }
            get { throw new NotImplementedException(); }
        }

        /// <summary>
        /// Sets the caption string value.
        /// </summary>
        /// <value></value>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
        public virtual string ProceedMessage
        {
            set { throw new NotImplementedException(); }
            get { throw new NotImplementedException(); }
        }

        /// <summary>
        /// Gets the RTF box.
        /// </summary>
        /// <value></value>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
        internal virtual WpfSummaryBox SummaryBox
        {
            get
            {
                throw new NotImplementedException();
            }
        }

        /// <summary>
        /// For use by designer only.
        /// </summary>
#pragma warning disable 618
        [Obsolete("This constructor should only be used by the designer", false)]
        protected ActionsWizardPageControlBase()
        { }
#pragma warning restore 618

        /// <summary>
        /// Initialize the page control
        /// </summary>
        public override void InitializePageControl()
        {
            base.InitializePageControl();

            // Let the system know we are done initializing.
            this.Initialized = true;
        }

        /// <summary>
        /// Called when page is activated.
        /// </summary>
        public virtual void OnActivated()
        {
            // Get the summary text and put it the display.
            IEnumerable<SmsSummaryItem> summaryItems = this.GetSummaryItems();

            if (summaryItems != null)
            {
                SummaryBox.SetSummary(summaryItems);
            }
        }

    }
}

